home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / driverkit / i386 / PCI.h < prev   
Text File  |  1994-08-22  |  1KB  |  55 lines

  1. /*
  2.  * Copyright (c) 1994 NeXT Computer, Inc.
  3.  *
  4.  * PCI Configuration space structure and associated defines.
  5.  *
  6.  * HISTORY
  7.  *
  8.  * 13 May 1994    Dean Reece at NeXT
  9.  *    Created.
  10.  *
  11.  */
  12.  
  13. /* The IOPCIConfigSpace structure can be used to decode the 256 byte
  14.  * configuration space presented by each PCI device.  This structure
  15.  * is based on the PCI LOCAL BUS SPECIFICATION, rev 2.0, section 6.1
  16.  */
  17.  
  18. typedef struct _IOPCIConfigSpace {
  19.     unsigned short    VendorID;
  20.     unsigned short    DeviceID;
  21.     unsigned short    Command;
  22.     unsigned short    Status;
  23.     unsigned long    RevisionID:8;
  24.     unsigned long    ClassCode:24;
  25.     unsigned char    CacheLineSize;
  26.     unsigned char    LatencyTimer;
  27.     unsigned char    HeaderType;
  28.     unsigned char    BuiltInSelfTest;
  29.     unsigned long    BaseAddress[6];
  30.     unsigned long    reserved1;
  31.     unsigned long    reserved2;
  32.     unsigned long    ROMBaseAddress;
  33.     unsigned long    reserved3;
  34.     unsigned long    reserved4;
  35.     unsigned char    InterruptLine;
  36.     unsigned char    InterruptPin;
  37.     unsigned char    MinGrant;
  38.     unsigned char    MaxLatency;
  39.     unsigned long    VendorUnique[48];
  40. } IOPCIConfigSpace;
  41.  
  42.  
  43. /* PCI_DEFAULT_DATA is the value resulting from a read to a non-existent
  44.  * PCI device's configuration space.
  45.  */
  46.  
  47. #define PCI_DEFAULT_DATA    0xffffffff
  48.  
  49.  
  50. /* PCI_INVALID_VENDOR_ID is a Vendor ID reserved by the PCI/SIG and is
  51.  * guaranteed not to be assigned to any vendor.
  52.  */
  53.  
  54. #define    PCI_INVALID_VENDOR_ID    0xffff
  55.